package com.cupster.func_db_greendao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * news table
 */
@Entity
public class News {
    @Id(autoincrement = true)
    private Long _id;
    private int dr;

    @NotNull
    private String title;
    private String subTitle;
    private String intro;
    @NotNull
    private String url;
    private int isCollected;
    private int readProgress;
    @Generated(hash = 184335320)
    public News(Long _id, int dr, @NotNull String title, String subTitle,
            String intro, @NotNull String url, int isCollected, int readProgress) {
        this._id = _id;
        this.dr = dr;
        this.title = title;
        this.subTitle = subTitle;
        this.intro = intro;
        this.url = url;
        this.isCollected = isCollected;
        this.readProgress = readProgress;
    }
    @Generated(hash = 1579685679)
    public News() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public int getDr() {
        return this.dr;
    }
    public void setDr(int dr) {
        this.dr = dr;
    }
    public String getTitle() {
        return this.title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getSubTitle() {
        return this.subTitle;
    }
    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }
    public String getIntro() {
        return this.intro;
    }
    public void setIntro(String intro) {
        this.intro = intro;
    }
    public String getUrl() {
        return this.url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public int getIsCollected() {
        return this.isCollected;
    }
    public void setIsCollected(int isCollected) {
        this.isCollected = isCollected;
    }
    public int getReadProgress() {
        return this.readProgress;
    }
    public void setReadProgress(int readProgress) {
        this.readProgress = readProgress;
    }

}
